from django.template import Library
from settings import MEDIA_URL, MEDIA_ROOT

register = Library()

@register.filter
def media_uri(folder = False):
    if folder is True:
        return MEDIA_ROOT

    return MEDIA_URL

@register.filter
def url_contains(url = '', tgt = ''):
    pass